<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<html>
    <head>
        <fmt:setBundle basename="ApplicationResources" />
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
        <title><fmt:message key="title.createsch" /></title>
    </head>
    <body>
        <h2>
            <fmt:message key="title.createsch" />
        </h2>
        <form action="${pageContext.request.contextPath}/ScheduleController/subcreatesch"
              method=post>
            <center>
                <table class="framed">
                    <tr>
                        <th width="45%"><fmt:message key="caption.name" /></th>
                        <th width="55%"><fmt:message key="caption.desc" /></th>
                    </tr>
                    <tr>
                        <td><fmt:message key="fieldLabel.createProgram" /></td>
                                         <td><select  name="createProgram">  
                                            <c:forEach items="${rpProgList}" var="file">  
                                              <option>${file}</option>  
                                            </c:forEach>  
                                           </select></td>
				</tr>
            <tr>
                     <td><fmt:message key="fieldLabel.createPresenter" /></td> 
                        <td>
                            <select name="Presenter" style="width: 300px">  
                                <c:forEach items="${presenternameList}" var="presentername">  
                                    <option>${presentername}</option>  
                                </c:forEach>  
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td><fmt:message key="fieldLabel.createProducer" /></td> 
                        <td>
                            <select name="Producer" style="width: 300px">  
                                <c:forEach items="${producernameList}" var="producername">  
                                    <option>${producername}</option>  
                                </c:forEach>  
                            </select>
                        </td>
                    </tr>

                    <tr>
                        <td><fmt:message key="fieldLabel.scheduleYear" /></td>
                        <td><select  name="createYear">  
                                <c:forEach items="${yearList}" var="file">  
                                    <option>${file}</option>  
                                </c:forEach>  
                            </select></td>
                    </tr>
                    <tr>
                        <td><fmt:message key="fieldLabel.createMonth" /></td>
                        <td><select name="createMonth">  
                                <c:forEach items="${monthList}" var="file">  
                                    <option>${file}</option>  
                                </c:forEach>  
                            </select></td>
                    </tr>
                    <tr>
                        <td><fmt:message key="fieldLabel.createDay" /></td>
                        <td><select name="createDay">  
                                <c:forEach items="${dayList}" var="file">  
                                    <option>${file}</option>  
                                </c:forEach>  
                            </select></td>
                    </tr>
                    <tr>
                        <td><fmt:message key="fieldLabel.createHour" /></td>
                        <td><select name="createHour" id="createHour">  
                                <c:forEach items="${hourList}" var="file">  
                                    <option>${file}</option>  
                                </c:forEach>  
                            </select></td>
                    </tr>
                        </td>
                    </tr>
                                            <tr>
            <input
                type="submit" value="Create Schedule"></tr>
                </table>
            </center>

        </form>
   <!--     <form action="${pageContext.request.contextPath}/ScheduleController/subcreatesch"                                              
              method=post>
            <input
                type="submit" value="Create Schedule">
        </form>-->

    <!--    <c:if test="${! empty  searchschlist}">
            <table class="borderAll">
                <tr>
                    <th><fmt:message key="label.schedule.radioprogram" /></th>
                    <th><fmt:message key="label.schedule.presenter" /></th>
                    <th><fmt:message key="label.schedule.producer" /></th>
                </tr>
                <c:forEach var="rprogram" items="${searchschlist}" varStatus="status">
                    <tr class="${status.index%2==0?'even':'odd'}">
                        <td class="nowrap">${rprogram.name}</td>
                        <td class="nowrap">${rprogram.presenter}</td>
                        <td class="nowrap">${rprogram.producer}</td>
                    </tr>
                </c:forEach>
            </table>
        </c:if>-->

    </body>
</html>